package com.xuelang.pipeline.app.resource.v1beta;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liuyuan.ly
 * @since 2024/5/30 14:24
 */

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class V1Beta1WorkspaceDeclaration {

    @ApiModelProperty(value = "workspace 声明 name", position = 1)
    private String name;

    @ApiModelProperty(value = "workspace 描述", position = 2)
    private String description;

    @ApiModelProperty(value = "挂在到step的目录", position = 3)
    private String mountPath;

    @ApiModelProperty(value = "是否只读", position = 4)
    private boolean readOnly;

    @ApiModelProperty(value = "Optional 将工作区标记为在 TaskRuns 中不需要。默认情况下，此字段为 false，因此需要声明的工作空间。", position = 5)
    private boolean optional;
}
